package com.csw;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2022/11/23 19:35
 */
public class BottomNum {


    void newBottomNum(){

        //地雷周围3*3区域
        for (int i = 1; i <= GameUtil.Map_W; i++) {
            for (int j = 1; j <= GameUtil.Map_H; j++) {
                if (GameUtil.DATA_BOTTOM[i][j]==-1){
                    for (int k=i-1;k<=i+1;k++){
                        for (int l=j-1;l<=j+1;l++){
                            if (GameUtil.DATA_BOTTOM[k][l]>=0){
                                GameUtil.DATA_BOTTOM[k][l]++;
                            }
                        }
                    }
                }
            }
        }
    }
}
